#ifndef CIRCLELABEL_H
#define CIRCLELABEL_H

#include <QLabel>


class CircleLabel : public QLabel
{
public:
    CircleLabel(int width = 0, int height = 0, QWidget* parent = 0);
    void setImage(QString imgPath)
    {
        m_image = imgPath;
    }

protected:
    void paintEvent(QPaintEvent *);
    void enterEvent(QEvent *);
    void leaveEvent(QEvent *);

private:
    QString m_image;
    int m_flag = false;
    const int MARGIN;
};

#endif // CIRCLELABEL_H
